home *** CD-ROM | disk | FTP | other *** search
- stop();
- orgWidth = preloader.loadBar._height;
- this.onEnterFrame = function()
- {
- trace(loadedbytes + "," + totalbytes);
- loadedbytes = getBytesLoaded();
- totalbytes = getBytesTotal();
- percentbytes = loadedbytes / (totalbytes / 100);
- preloader.loadBar._height = orgWidth / 100 * percentbytes;
- if(loadedbytes == totalbytes)
- {
- _root.play();
- delete this.onEnterFrame;
- }
- };
-